<?php
  $userid = $_POST["userid"];
  $phoneid = $_POST["phoneid"];
  $pcolorid = $_POST["pcolorid"];
  $pstorageid = $_POST["pstorageid"];
  $ppriceid = $_POST["ppriceid"];
  $pimgid = $_POST["pimgid"];
  $pnumid = $_POST["pnumid"];

  $conn = mysql_connect("localhost","root","root");
  mysql_select_db("database_phone");

  mysql_query("insert into user2phone values ('null','$userid','$phoneid','$pcolorid','$pstorageid','$ppriceid','$pimgid','$pnumid')",$conn);
  echo "1";
  mysql_close($conn);
    
?>
